package com.ecar.core.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecar.common.dao.mybatis.MybatisMapper;
import com.ecar.core.common.entity.UserRole;

public interface UserRoleMapper extends MybatisMapper{
    int deleteByPrimaryKey(Integer id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);
    
    List<Integer> getRoleIdsByUserId(@Param("userId") String userId);
    
    List<String> getRoleCodesByUserId(@Param("userId") String userId);
}